import unittest
from Cuadratica import *
 
class CuadraticaTest(unittest.TestCase):

	def testRaizes(self):
		c=Cuadratica(1,-5,6)
		c.calculoRaiz()	
		self.assertEqual(c.getX1(),3) 
		self.assertEqual(c.getX2(),2)
		
	def testCuadratica(self):
		c=Cuadratica(1,-5,6)
		c.calculoRaiz()
		self.assertEqual(c.Comprobar(),0)
		
 
 
if __name__=="__main__":
    unittest.main()
